package com.spinach.game.core;

import com.spinach.game.enums.PlayerStatus;
import com.spinach.game.enums.PlayerType;
import io.netty.channel.Channel;
import lombok.Builder;
import lombok.Data;

import java.util.List;

@Data
@Builder
public class GamePlayer {
    /**
     * 归属房间号
     */
    private long roomId;

    /**
     * 牌型
     */
    private List<Poker> pokers;


    private transient Channel channel;

    /**
     * 玩家类型（默认：PEASANT）
     */
    private PlayerType playerType = PlayerType.PEASANT;

    /**
     * 玩家状态（默认：READY）
     */
    private PlayerStatus playerStatus = PlayerStatus.NO_READY;
    /**
     * 用户信息
     */
    private UserInfo user;

    /**
     * 下家
     */
    private GamePlayer next;

    /**
     * 上家
     */
    private GamePlayer pre;
}
